/* 
 * Copyright (c) 2014 zepolar.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *    zepolar - initial API and implementation and/or initial documentation
 */
package ec.gob.magap.model.general;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;
import java.util.Set;

import javax.persistence.Embedded;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

import ec.gob.magap.model.general.enumeration.EnumAgreementSigned;
import ec.gob.magap.model.general.enumeration.EnumOrganizationState;
import ec.gob.magap.model.upa.Agriculture;
import ec.gob.magap.model.upa.Coordinates;
import ec.gob.magap.model.upa.Livestock;
import ec.gob.magap.model.upa.Location;

/**
 * 
 * @author zepolar
 *
 */
@Entity
public class Era implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	@Id
	@GeneratedValue(strategy=GenerationType.AUTO)
	private Long id;
	private String nameRecinto;
	private String nameOrganization;
	@Embedded 
	private Coordinates coordinates;
	@Embedded
	private Location location;
	
	private EnumOrganizationState organizationState;
	private EnumAgreementSigned agreementSigned;
	private LegalizationInstitute legalizationInstitute;
	
	
	private Person legalPerson;
	private Person leaderPerson;
	private Integer maleParticipants;
	private Integer femaleParticipants;
	private Integer under25Participants;
	private Integer over50Participants;
	private Ethnicity ethnicity;
	private Set<Entry> entryList;
	private Entry actualEntry;
	
	private BigDecimal totalFincas;
	private BigDecimal totalFincasInnovacion;
	private BigDecimal totalProductoresSemillaCalidad;
	private Integer numeroOrganizaciones;
	private BigDecimal totalHectareas;
	
	private List<Agriculture> agricultureList;
	private List<Livestock> livestockList;
	private List<Person> participanteList;
	
	
	

}
